import request from '@/utils/request'

// 查询zhang列表
export function listHistory(query) {
  return request({
    url: '/system/history/list',
    method: 'get',
    params: query
  })
}

// 查询zhang详细
export function getHistory(id) {
  return request({
    url: '/system/history/' + id,
    method: 'get'
  })
}

// 新增zhang
export function addHistory(data) {
  return request({
    url: '/system/history',
    method: 'post',
    data: data
  })
}

// 修改zhang
export function updateHistory(data) {
  return request({
    url: '/system/history',
    method: 'put',
    data: data
  })
}

// 删除zhang
export function delHistory(id) {
  return request({
    url: '/system/history/' + id,
    method: 'delete'
  })
}
//撤销凭据zhang
export function revokeCreatZhang(data) {
  return request({
    url: 'system/zhang/reset',
    method: 'post',
    data: data,
  })
}


//凭据详情zhang
export function detailCreatZhang(id) {
  return request({
    url: 'system/zhang/detail?id='+id,
    method: 'get',
  })
}